<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 使用迭代器 **forEach** **every** **some**  去判断某个数组中是否存在元素 X，并说出各迭代器区别 -->
    <script>
      let arr = [2, 8, 4, 9, 5, 'y']
      arr.some(itme => {
        console.log(itme)
        if (itme == 'y') {
          return true
        }
        return false
      })
    </script>
  </body>
</html>
